package model;

import clock.SecondTimer;
import structure.ParticipantVector;
import structure.StartTime;

public class Debate {
	private ParticipantVector list;
	private SecondTimer secondTimer;
	private StartTime startTime;
	private CurrentParticipant p;
	
	public Debate() {
		list = new ParticipantVector();

		secondTimer = new SecondTimer();
		startTime = new StartTime(1,10);

		p = new CurrentParticipant();
		p.addParticipantChangeListener(secondTimer);		

	}

	public CurrentParticipant getCurrentParticipant() {
		return p;
	}
	
	public StartTime getStartTime(){
		return startTime;
	}
	
	public SecondTimer getSecondTimer(){
		return secondTimer;
	}
	
	public Participant addParticipant(String name){
		Participant p = new Participant(name, startTime); 
		list.add(p);
		return p;
	}

	public ParticipantVector getParticipants() {
		return list;
	}
}